<?php

/**
 * @Author: wuchenge
 * @Date:   2022-03-25 15:45:23
 * @Email: ligui0506@126.com
 * @Descript:
 */
namespace App\Front\Controllers;

use App\Http\Controllers\ApiController;
use App\Models\Level;
use Illuminate\Http\Request;

class IndexController extends ApiController
{

    /**
     * @param Request $request
     * @return mixed
     */
    public function levels(Request $request)
    {
        $data = Level::select(['id', 'name', 'color'])->get();
        return $this->response($data);
    }

}
